var flat = 1

var result = flat ? 1 : 2

console.log(result)

const foo = {
    bar: function () {
        return 1
    },
    example: function () {
        return 2
    },
}

const defineComponent = {
    name: 'defineComponent',
    data() {
        return {
            foo: 'foo',
            result: result,
            fooBar: foo.bar(),
            fooExample: foo.example(),
        }
    },
}
